package com.start.security.configs;


import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.util.List;

@Data
public class StartDataSecurityProperties {
    public static final String PREFIX = "start.security.data";

    @Schema(name = "是否启用")
    private boolean enable;

    @Schema(name = "需要过滤校验安全的url")
    private List<String> urls;

    @Schema(name = "客户端key")
    private String heardClientKey = "start-client-id";

    @Schema(name = "客户端redisKey")
    private String redisKey = "start:security:data:client:";

    @Schema(name = "返回值标记")
    private String resultEncryptKey = "encrypt";
    @Schema(name = "服务端私钥")
    private String serverPrivateKey;
    @Schema(name = "服务端公钥")
    private String serverPublicKey;
    @Schema(name = "密钥过期时间(分钟) 默认24小时")
    private Long expire = 86400L;

}
